import request from '@/utils/request'

// 查询亲人移居信息列表
export function listMigrate(query) {
  return request({
    url: '/information/migrate/list',
    method: 'get',
    params: query
  })
}

// 查询亲人移居信息详细
export function getMigrate(id) {
  return request({
    url: '/information/migrate/' + id,
    method: 'get'
  })
}

// 新增亲人移居信息
export function addMigrate(data) {
  return request({
    url: '/information/migrate',
    method: 'post',
    data: data
  })
}

// 修改亲人移居信息
export function updateMigrate(data) {
  return request({
    url: '/information/migrate',
    method: 'put',
    data: data
  })
}

// 删除亲人移居信息
export function delMigrate(id) {
  return request({
    url: '/information/migrate/' + id,
    method: 'delete'
  })
}
